<?php echo $this->extComponent('Ext.form.Panel', array(
	'renderTo'=>'form',
	'defaultType'=>'textfield',
	'width'=>350,
	'url'=>'logon',
	'title'=>'login',
	'items'=>array(
		array(
			'fieldLabel'=>'company',
			'name'=>'company',
			'allowBlank'=>false
		),
		array(
			'fieldLabel'=>'name',
			'name'=>'name',
			'allowBlank'=>false
		),
		array(
			'fieldLabel'=>'password',
			'name'=>'password',
			'allowBlank'=>false
		),
	),
	'buttons'=>array(
		array(
			'text'=>'login',
			'handler'=>new Zend_Json_Expr("function(){this.up('form').getForm().submit();}")
		),
		array(
			'text'=>'register',
			'handler'=>new Zend_Json_Expr("function(){window.location='/account/register'}")
		)
	)
))?>

<div id='form'></div>